package main

import (
	"fmt"
)

func main() {
	bc := NewBlockChain()
	bc.AddBlock("我要打十个")
	bc.AddBlock("我每样都只会一点点")
	for i, block := range bc.blocks {
		fmt.Printf("当前区块高度: %d\n", i)
		fmt.Printf("前区块哈希: %x\n", block.prevHash)
		fmt.Printf("当前区块哈希: %x\n", block.Hash)
		fmt.Printf("数据: %s\n", block.Data)
	}
}
